Bitmap object is a window to display images. It support's bmp, jpg, pcx, png, tif formats. Let try to insert a bitmap to our MMB project.
1. Press Bitmap icon from the toolbar or select Create>Object>Bitmap from menu.
2. Place the cursor to the page
3. Select image file.
4. If necessary resize the bitmap. If you want to keep aspect ratio press CTRL while resizing. To restore to the original size select "Restore Original" from the Effects menu.
Double click on the bitmap object. The properties pop-up will be opened.
There are two main options:
This option preserve the actual Image dimensions. Even you resize the Bitmap object, the image size stay unchanged. It will allow you to make smaller/larger Bitmap object with the scrollable content. To scroll image inside the smaller/larger Bitmap object you can use Scroll Bars (enable "Show Scroll Bars" option), dragging the mouse inside the Bitmap object (enable "Allow Mouse to Scroll Image" option) and finally the ScrollImageView function. With "Keep Actual Image Size" enabled you can also zoom the image inside the Bitmap object. This will allow you to zoom the image inside the Bitmap object
If you keep the image at original size you could also have some options
If you select resizing the image to the containers size you could have an option that whether keeping aspect ratio or not. To keep aspect ratio simply click the check box.
You could fit the containers size to the original image sizes. Look at the above illustirations. The image is at the same size at the both side. But the container is resized at the right.
You could also select a background color for container. Check above illustarion.
Normaly, MMB embeds the media sources (images, sounds, etc.) This will give us an opportunity to make a standalone application. So it will be distributed & installed easly. But sometimes there are many media sources, many images and many sounds. If you embed all the sources in to the MMB, then the compiled EXE will be very large. This is an unexpected situtation because a large file limits distributing, sharing, e-mailing, using etc. What can we do?
The answer is not to embedding image files. This means image files could be located outside the EXE and we could load it when it needed. Check the below images:
Image storage: External Storage:The transparency related properties is as same as the other objects transparency features.
To make an image (or part of it) transparent or
semitransparent, you have to use more sophisticated tools û
Alpha Transparency Map.
It is usually Black & White pictures where Black means
Full transparent and White is opaque or it has the
opacity specified in the Opacity box ( 0 û fully
transparent, 1 - opaque).
You can switch on/off the alpha transparency by checking
Enable Alpha Transparency check box.
If you donÆt define the transparency map, but you enable the
Alpha Transparency, the image will blend with the background
with opacity defined in the Opacity edit box.
You can apply a few useful effects with the transparency map û
invert, make it grayscale and blur the map.
The typical usage of the transparency map is the Glow or Drop
Shadow. The image is just rectangular with some color. The
shape and the effect is done by the Transparency map.
If the Transparency map is smaller than the image, it will be tilled, so you can use it for some nice effects.
Fill button û near the Color combo box.
You can fill whole images with a single color as defined in
the color box. A great way to change the color of the Glow or
Drop shadow like objects.
NOTE: If you resize the Image object placed in the project page or you change the Zoom level in the Image Properties dialog, then the copy (invisible) of the original bitmap will be created. The main disadvantage of this fact is that it can significantly increase the size of the project file and the compiled exe. Of course, you can remove this redundant copy of the image (File>>>Reduce Size menu), but this will avoid restoring the image to it's original size (by RestoreImage scripting command) or the zoom level to the original value.
Limitations: Rotate/Resize image functions will not work for bitmap object with "Keep Actual Image Size" option enabled. Only Zoom image is alowed for that object.
For Images related scripting commands look here. An image example projects can be found here